package com.lsz.deport.json;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.Keep;

import java.util.List;

@Keep
public class ContentBean implements Parcelable {
    /**
     * id : 12300
     * storeId : 2800001
     * orderNum : 499
     * orderSeq : 201912310000112300
     * currency : CNY
     * amountTotal : 30.00
     * amountActual : 30.00
     * timezone : 10100
     * orderNewLdt : 2019-12-31 10:21:16
     * canceledLdt : 2019-12-31 10:21:30
     * channelType :
     * orderType : 5610302
     * status : 5610292
     * storeName : 虹桥天街店
     * address : 上海闵行区申长路869号龙湖虹桥天街4层近绍虹路
     * count : 2
     * foods : [{"id":"3300001","name":"酸辣土豆丝卷","alias":"Hot & Sour Potato Crispy Roll","count":"1","imgIcon":"http://static.lianglife.com/Menu_Product/Roll/HotSourPotato_b.png","imgMini":"http://static.lianglife.com/Menu_Product/Roll/HotSourPotatoCrispyRoll_b.png","imgFace":"http://static.lianglife.com/Menu_Product/Roll/HotSourPotatoCrispyRoll_d.png","ranking":"1"}]
     * timeout : 15
     */

    public String id;
    public String storeId;
    public String orderNum;
    public String orderSeq;
    public String currency;
    public String amountTotal;
    public String amountActual;
    public String timezone;
    public String orderNewLdt;
    public String canceledLdt;
    public String channelType;
    public String orderPayLdt;
    public String orderType;
    public String status;
    public String storeName;
    public String address;
    public String count = "0";
    public String timeout = "5";

    public ContentBean() {
        super();
    }

    public ContentBean(Parcel in) {
        id = in.readString();
        storeId = in.readString();
        orderNum = in.readString();
        orderSeq = in.readString();
        currency = in.readString();
        amountTotal = in.readString();
        amountActual = in.readString();
        timezone = in.readString();
        orderNewLdt = in.readString();
        canceledLdt = in.readString();
        channelType = in.readString();
        orderPayLdt = in.readString();
        orderType = in.readString();
        status = in.readString();
        storeName = in.readString();
        address = in.readString();
        count = in.readString();
        timeout = in.readString();
    }

    public static final Creator<ContentBean> CREATOR = new Creator<ContentBean>() {
        @Override
        public ContentBean createFromParcel(Parcel in) {
            return new ContentBean(in);
        }

        @Override
        public ContentBean[] newArray(int size) {
            return new ContentBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(storeId);
        dest.writeString(orderNum);
        dest.writeString(orderSeq);
        dest.writeString(currency);
        dest.writeString(amountTotal);
        dest.writeString(amountActual);
        dest.writeString(timezone);
        dest.writeString(orderNewLdt);
        dest.writeString(canceledLdt);
        dest.writeString(orderPayLdt);
        dest.writeString(channelType);
        dest.writeString(orderType);
        dest.writeString(status);
        dest.writeString(storeName);
        dest.writeString(address);
        dest.writeString(count);
        dest.writeString(timeout);
    }

    @Override
    public String toString() {
        return "ContentBean{" +
                "id='" + id + '\'' +
                ", storeId='" + storeId + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", orderSeq='" + orderSeq + '\'' +
                ", currency='" + currency + '\'' +
                ", amountTotal='" + amountTotal + '\'' +
                ", amountActual='" + amountActual + '\'' +
                ", timezone='" + timezone + '\'' +
                ", orderNewLdt='" + orderNewLdt + '\'' +
                ", canceledLdt='" + canceledLdt + '\'' +
                ", orderPayLdt='" + orderPayLdt + '\'' +
                ", channelType='" + channelType + '\'' +
                ", orderType='" + orderType + '\'' +
                ", status='" + status + '\'' +
                ", storeName='" + storeName + '\'' +
                ", address='" + address + '\'' +
                ", count='" + count + '\'' +
                ", timeout='" + timeout + '\'' +
                '}';
    }
}